﻿using System;
using System.Collections.Generic;
using System.Data;
using HHL_Acc.HHL_DaoAcc.DataBase;
using HHL_Acc.HHL_EntityAcc;

namespace HHL_Acc.HHL_DaoAcc.DataObject
{
    public class SysImpMethodDao : CBaseDao
    {
        public IList<SysImpMethod> getSysImportList()
        {
            const String sql = "select  ImpMethod, ImpName as ImpMethodName from SYS_IMPMETHODS where disabled = 0";
            DataSet ds = ExcuteSql(sql);
            if (ds != null && ds.Tables.Count > 0)
            {
                return CDb.MapList<SysImpMethod>(ds.Tables[0]);
            }
            return null;
        }
    }
}